home *** CD-ROM | disk | FTP | other *** search
/ Sigcat 1995 / Sigcat 95 - System G Corporation.ISO / install / inscript.eng < prev    next >
Encoding:
Text File  |  1995-03-08  |  32.7 KB  |  1,246 lines

  1. ; CD Answer Installation Script - Tech Support Version           jdk,ejf
  2. ; <<CDA>> Aug 18 1992;3.1
  3.  
  4. ; 3M CPS Solutions                    modified by CKL 3/8/95
  5. ;     written for the 3M MSDS DEMO CD-ROM application
  6.  
  7. BREAK abort
  8.  
  9. ; install disk
  10. PARSE_PATH <$ProgDir>
  11. SET insdrive = <$Drive>
  12. SET ins = <insdrive>\INSTALL
  13. SET curdisk = 1
  14. GOSUB need_disk
  15.  
  16. ; here are some defaults:
  17.  
  18. ;  default destination drive
  19. PARSE_PATH <$CurDir>
  20. SET def_dest = C:\
  21. IF NOT "<$Drive>"=="<insdrive>" DO SET def_def = <$Drive>
  22.  
  23. ;  language
  24. SET def_lang = <$Language>
  25.  
  26. ; application name(s) (4 char ident(s) on CD-ROM)
  27. READFILE names = <ins>\APPLNAME.
  28.  
  29. ; product name (application name for batch file, subdirectory name)
  30. READFILE prod = <ins>\PRODNAME.
  31.  
  32. ; default dest drive and directory
  33. PARSE_PATH <def_dest><prod>.CD
  34. SET dstdrive = <$Drive>
  35. SET path = <$Dir>
  36. CD <dstdrive>\
  37.  
  38.  
  39. ; read and display Application Installation Screen
  40. IF NOT EXISTS <insdrive>\INSTALL\PRODSCRN.<def_lang> GOTO no_banner
  41. READFILE screen = <insdrive>\INSTALL\PRODSCRN.<def_lang>
  42. GOTO show_banner
  43. :no_banner
  44. SET screen =
  45. ----        CD Answer Installation for:\n\n
  46. ----               <prod>\n\n
  47. ----        Application(s): <names>
  48. :show_banner
  49. CLEAR
  50. TEXT <screen>
  51. SET screen =
  52. WAIT
  53.  
  54. SET def_drive=<dstdrive>
  55. SET def_path=<path>
  56.  
  57. GOTO okdir
  58. :getdir
  59. CLEAR
  60. TEXT \nError -\n\n
  61. ----  The path "<dstdrive><path>" is not allowed!\n
  62. ----There must be both a drive and a valid subdirectory name in order
  63. ---- to install the software.
  64. WAIT
  65. :okdir
  66. CLEAR
  67. TEXT The retrieval software must be installed on your hard disk or on a
  68. ---- formatted floppy disk.\n\n
  69. ----The standard values for a stand-alone installation are drive <def_drive>
  70. ---- (normally the hard disk), and a subdirectory named <def_path>.\n
  71. ----Network installations will most likely use other values.\n\n
  72. ----To use these values, press the ┘ (Enter) key twice. To alter them,\n
  73. ----type the new drive or subdirectory at the appropriate prompt,\n
  74. ----then type ┘ (Enter).\n\n
  75.  
  76. INPUT 6, 11, 5 dstdrive = Install on drive     ?
  77. INPUT 6, 13, 40 path    = Install in directory ?
  78. SET dest = <dstdrive><path>
  79. SET confile = <ins>\_DW_.CFG
  80.  
  81. IF "<dstdrive>"=="" GOTO getdir
  82. IF "<path>"=="\" GOTO getdir
  83. IF "<path>"=="" GOTO getdir
  84. IF NOT DIREXISTS <dstdrive>\ GOTO getdir
  85.  
  86. CD <dstdrive>\
  87.  
  88. IF NOT DIREXISTS <dest> GOTO nopath
  89. IF NOT EXISTS <dest>\DW.EXE GOTO nopath
  90. CLEAR
  91. TEXT The directory "<dest>" already exists.
  92. NEWMENU ?, 3, 54
  93. MENU Remove the old version; install new version
  94. MENU Remove the old version; do not install new software
  95. MENU Alter configuration; do not copy software
  96. MENU Stop the installation without making any changes
  97.  
  98. CHOICE 1
  99. CLEAR
  100. TEXT Deleting previous contents of <dest>...
  101. FOREACH name = <names>
  102.  DEL <dest>\<name>*.*
  103. NEXT
  104. DEL <dest>\FS_*.DRV
  105. DEL <dest>\SC_*.DRV
  106. DEL <dest>\PR_*.DRV
  107. DEL <dest>\GR_*.DRV
  108. DEL <dest>\_DW_*.*
  109. DEL <dest>\ADL_MSGS.*
  110. DEL <dest>\DW.EXE
  111. DEL <dest>\UPDATE.EXE
  112. GOTO okpath
  113.  
  114. CHOICE 2
  115. CLEAR
  116. TEXT Removing <dest> directory...
  117. FOREACH name = <names>
  118.  DEL <dest>\<name>*.*
  119. NEXT
  120. DEL <dest>\FS_*.DRV
  121. DEL <dest>\SC_*.DRV
  122. DEL <dest>\PR_*.DRV
  123. DEL <dest>\GR_*.DRV
  124. DEL <dest>\_DW_*.*
  125. DEL <dest>\ADL_MSGS.*
  126. DEL <dest>\DW.EXE
  127. DEL <dest>\UPDATE.EXE
  128. IF NOT EXISTS <dest>\*.* GOTO remdest
  129. TEXT <dest> directory has unknown files, directory not removed!!
  130. WAIT
  131. GOTO norem
  132. :remdest
  133. RD <dest>
  134. :norem
  135. DEL <dstdrive>\<prod>.BAT
  136. GOTO end2
  137.  
  138. CHOICE 3
  139. SET alter = Y
  140. SET confile = <dest>\_DW_.CFG
  141. GOTO okpath
  142.  
  143. CHOICE 4
  144. GOTO end2
  145. ENDCHOICES
  146.  
  147. :nopath
  148. MD <dest>
  149. IF NOT DIREXISTS <dest> GOTO getdir
  150. :okpath
  151.  
  152. ;----------------------------------------------------------------------------
  153.  
  154. IF NOT EXISTS <confile> GOTO no_config
  155. DISP 5,14 Reading configuration...
  156. READCONFIG <confile>
  157. :no_config
  158. GOTO enter_drive
  159.  
  160. ;----------------------------------------------------------------------------
  161. ; New On-Line Help System
  162.  
  163. TEXT Next, the retrieval software needs to know how it should access the
  164. ---- CD-ROM. There are two access methods possible:\n\n
  165. ----              - via a CD-ROM device driver\n
  166. ----              - via a logical DOS drive letter, e.g. E:\n\n
  167. ----Certain of these access methods are more applicable to network and other 
  168. ---- operating environments, e.g. Microsoft Extensions, OS/2, etc.\n
  169. ----If you would like more information on these topics, select menu option
  170. ---- two below.  Select option one if you are ready to continue.
  171. NEWMENU ?, 12, 25
  172. MENU Continue installation
  173. MENU Help on CD-ROM device drivers, DOS drive letters, etc.
  174.  
  175. CHOICE 1
  176. CLEAR
  177. GOTO cont_inst
  178.  
  179. CHOICE 2
  180. CLEAR
  181. SET helpdef=1
  182. GOTO help_menu
  183. ENDCHOICES
  184.  
  185. :help_menu
  186. TEXT Select the topic about which you would like to read more.\n\n
  187. ----Select the last menu option when you are ready to continue the installation.
  188. NEWMENU ?, 6, 25
  189. MENU CD-ROM device drivers
  190. MENU CD-ROM device names
  191. MENU Logical DOS drive letters (e.g. Microsoft Extensions)
  192. MENU Network considerations
  193. MENU OS/2, Soft AT/Soft PC, and other environments
  194. MENU Manual configuration options
  195. MENU Return to installation
  196.  
  197. IF <helpdef>==1 DO MENU_DEFAULT 1
  198. IF <helpdef>==2 DO MENU_DEFAULT 2
  199. IF <helpdef>==3 DO MENU_DEFAULT 3
  200. IF <helpdef>==4 DO MENU_DEFAULT 4
  201. IF <helpdef>==5 DO MENU_DEFAULT 5
  202. IF <helpdef>==6 DO MENU_DEFAULT 6
  203.  
  204. CHOICE 1
  205. CLEAR
  206. SET helpdef=1
  207. GOTO drvrhelp1
  208.  
  209. CHOICE 2
  210. CLEAR
  211. SET helpdef=2
  212. GOTO namehelp1
  213.  
  214. CHOICE 3
  215. CLEAR
  216. SET helpdef=3
  217. GOTO mscdex1
  218.  
  219. CHOICE 4
  220. SET helpdef=4
  221. CLEAR
  222. GOTO nethelp1
  223.  
  224. CHOICE 5
  225. SET helpdef=5
  226. CLEAR
  227. GOTO os2help1
  228.  
  229. CHOICE 6
  230. SET helpdef=6
  231. CLEAR
  232. GOTO config_help1
  233.  
  234. CHOICE 7
  235. SET helpdef=7
  236. CLEAR
  237. GOTO cont_inst
  238. ENDCHOICES
  239. ;------------------- Device Driver Help -----------------------------------------------------------
  240. :drvrhelp1
  241. TEXT A typical PC consists of several standard components or devices, 
  242. ---- e.g. keyboard, monitor, hard drive.  A computer may also include several
  243. ---- non-standard devices, e.g. one or more CD-ROM readers,
  244. ---- network adapter cards, scanning devices, sound boards, etc.\n\n
  245. ----Support for a computer's standard devices are "built in" to the computer's
  246. ---- operating system or BIOS.  To access these standard devices, you simply 
  247. ---- turn your computer on and start typing.  No additional software is required.
  248. NEWMENU ?, 11, 25
  249. MENU Continue with device driver help
  250. MENU Return to help topics menu
  251. MENU Return to installation
  252.  
  253. CHOICE 1
  254. CLEAR
  255. GOTO drvrhelp2
  256.  
  257. CHOICE 2
  258. CLEAR
  259. GOTO help_menu
  260.  
  261. CHOICE 3
  262. CLEAR
  263. GOTO cont_inst
  264. ENDCHOICES
  265.  
  266. :drvrhelp2
  267. TEXT To access non-standard devices, such as a CD-ROM reader, you must load a
  268. ---- device-related software program into your computer's operating environment.  
  269. ---- This software is called a device driver.\n\n
  270. ----Device driver software is supplied by the manufacturer of the device, usually on a 
  271. ---- diskette.  The diskette includes an install program which
  272. ---- copies the driver software to your computer's hard drive.  It also
  273. ---- adds a DEVICE= line to your system configuration file, CONFIG.SYS.
  274. ---- Here is an example of a typical DEVICE= line:\n
  275. ----              DEVICE = C:\CDROM\CDROM.SYS /D:DRIVE0
  276. NEWMENU ?, 11, 25
  277. MENU Continue with device driver help
  278. MENU Return to help topics menu
  279. MENU Return to installation
  280.  
  281. CHOICE 1
  282. CLEAR
  283. GOTO drvrhelp3
  284.  
  285. CHOICE 2
  286. CLEAR
  287. GOTO help_menu
  288.  
  289. CHOICE 3
  290. CLEAR
  291. GOTO cont_inst
  292. ENDCHOICES
  293.  
  294. :drvrhelp3
  295. TEXT When your computer starts or "boots" up, the operating system reads the
  296. ---- CONFIG.SYS file.  For each DEVICE= line listed in the file, the operating 
  297. ---- system attempts to load the driver specified into memory. 
  298. ---- You will generally see a line or two of text displayed
  299. ---- on the screen as each device driver is loaded.\n\n
  300. ----If the device driver file is not found, or if there is a device conflict (see 
  301. ---- next page), then the driver will fail to load. 
  302. ---- Instead of seeing a message such as "Device successfully
  303. ---- installed" at boot-up, you will see a message such as "Failed to
  304. ---- load device".
  305. NEWMENU ?, 11, 25
  306. MENU Continue with device driver help
  307. MENU Return to help topics menu
  308. MENU Return to installation
  309.  
  310. CHOICE 1
  311. CLEAR
  312. GOTO drvrhelp4
  313.  
  314. CHOICE 2
  315. CLEAR
  316. GOTO help_menu
  317.  
  318. CHOICE 3
  319. GOTO cont_inst
  320. ENDCHOICES
  321.  
  322. :drvrhelp4
  323. TEXT Occasionally a CD-ROM reader will fail to operate correctly even 
  324. ---- after following all of the manufacturer's instructions.
  325. ---- In this case, there may be a conflict between your CD-ROM adapter card and 
  326. ---- another installed device.\n\n
  327. ----Generally speaking, each device installed in your computer must use a unique 
  328. ---- interrupt request line (IRQ) and be assigned a unique memory (I/O) address.
  329. ---- If any two devices use the same IRQ or I/O address, then one or the 
  330. ---- other will fail to work properly.  You should contact the manufacturer's 
  331. ---- technical support line for help in resolving this conflict.
  332. NEWMENU ?, 12, 25
  333. MENU Return to help topics menu
  334. MENU Return to installation
  335.  
  336. CHOICE 1
  337. CLEAR
  338. GOTO help_menu
  339.  
  340. CHOICE 2
  341. CLEAR
  342. GOTO cont_inst
  343. ENDCHOICES
  344.  
  345. ;--------------- Device Name Help ------------------------------------------
  346. :namehelp1
  347. SET helpdef=2
  348. TEXT The DOS operating system uses names to identify installed
  349. ---- device drivers.  For CD-ROM devices, these names are assigned using the 
  350. ---- "/D:{name}" switch on the DEVICE= line in the CONFIG.SYS file.
  351. ---- For example, the following line loads a device named DRIVE0:\n\n
  352. ----             DEVICE = C:\CDROM\CDROM.SYS /D:DRIVE0\n\n
  353. ----When you return to the CD Answer installation program, you will be prompted 
  354. ---- for the name of the device assigned to your CD-ROM.  If you prefer to 
  355. ---- access your CD-ROM via a logical DOS drive letter (see next section),
  356. ---- then the assigned name is not important.
  357. NEWMENU ?, 12, 25
  358. MENU Return to help topics menu
  359. MENU Return to installation
  360.  
  361. CHOICE 1
  362. GOTO help_menu
  363.  
  364. CHOICE 3
  365. GOTO cont_inst
  366. ENDCHOICES
  367.  
  368. ;------- Microsoft Extensions Help ------------------------------------------
  369. :mscdex1
  370. TEXT Microsoft Extensions is a software program which "extends" a computer's
  371. ---- operating system (i.e. DOS) so that it can directly access the files on a 
  372. ---- CD-ROM disc. \n\n
  373. ----Generally speaking, unless Microsoft Extensions or a
  374. ---- similar program is loaded, you can not do a directory listing (DIR) of the
  375. ---- files on a CD-ROM, nor can you copy or read them directly.  Loading Extensions,
  376. ---- however, causes the CD-ROM disc to be treated as any other hard drive.  The
  377. ---- only difference is that the files on the CD-ROM can not be deleted or changed.
  378. ---- This is because CD-ROM is a Read-Only media.
  379. NEWMENU ?, 11, 25
  380. MENU Continue with Microsoft Extensions help
  381. MENU Return to help topics menu
  382. MENU Return to installation
  383.  
  384. CHOICE 1
  385. GOTO mscdex2
  386.  
  387. CHOICE 2
  388. GOTO help_menu
  389.  
  390. CHOICE 3
  391. GOTO cont_inst
  392. ENDCHOICES
  393.  
  394. :mscdex2
  395. TEXTMicrosoft Extensions makes the CD-ROM files accessible by assigning the 
  396. ---- next available DOS drive letter to the CD-ROM disc.  DOS uses C: (drive letter 
  397. ---- followed by a colon) to refer to a computer's hard drive.  If a PC has only one
  398. ---- hard drive, then loading Microsoft Extensions will assign D:
  399. ---- to the CD-ROM disc.  Similarly, if a PC has two hard drives, C: and D:,
  400. ---- then Extensions will assign E: to the CD-ROM disc.\n\n
  401. ----Note that Extensions allows you to specify a particular drive letter for
  402. ---- your CD-ROM.  See your Microsoft Extensions documentation for more 
  403. ---- information.
  404. NEWMENU ?, 11, 25
  405. MENU Continue with Microsoft Extensions help
  406. MENU Return to help topics menu
  407. MENU Return to installation
  408.  
  409. CHOICE 1
  410. GOTO mscdex3
  411.  
  412. CHOICE 2
  413. GOTO help_menu
  414.  
  415. CHOICE 3
  416. GOTO cont_inst
  417. ENDCHOICES
  418.  
  419. :mscdex3
  420. TEXT Most CD-ROM drive manufacturers distribute a copy of Microsoft Extensions
  421. ---- with their CD-ROM device drivers.  The program is executed by typing MSCDEX
  422. ---- at the DOS command line, followed by the same "/D:{name}" switch 
  423. ---- used in the CONFIG.SYS file, e.g., "MSCDEX /D:DRIVE0".\n\n
  424. ----This example tells Microsoft Extensions to provide a drive letter to
  425. ---- access the CD-ROM device named DRIVE0.  If there is no CD-ROM device
  426. ---- named DRIVE0 loaded into the computer's memory, then Extensions will fail
  427. ---- to load properly.
  428. NEWMENU ?, 11, 25
  429. MENU Continue with Microsoft Extensions help
  430. MENU Return to help topics menu
  431. MENU Return to installation
  432.  
  433. CHOICE 1
  434. GOTO mscdex4
  435.  
  436. CHOICE 2
  437. GOTO help_menu
  438.  
  439. CHOICE 3
  440. GOTO cont_inst
  441. ENDCHOICES
  442.  
  443. :mscdex4
  444. TEXTThe CD Answer software you are installing can be configured to access the
  445. ---- CD-ROM via a DOS drive letter.  However, unlike most CD-ROM applications, 
  446. ---- which can only be configured to access the CD-ROM via a DOS drive letter, 
  447. ---- CD Answer can also be configured to access the CD-ROM via a device driver.\n\n
  448. ----This ability to use either a device driver or a DOS drive letter is a definite
  449. ---- advantage since Microsoft Extensions, when loaded, uses some 27 KB of 
  450. ---- conventional RAM memory.\n\n
  451. MENU Continue with Microsoft Extensions help
  452. MENU Return to help topics menu
  453. MENU Return to installation
  454.  
  455. CHOICE 1
  456. GOTO mscdex5
  457.  
  458. CHOICE 2
  459. GOTO help_menu
  460.  
  461. CHOICE 3
  462. GOTO cont_inst
  463. ENDCHOICES
  464.  
  465. :mscdex5
  466. TEXTIf you do not need to load Microsoft Extensions, then you should
  467. ---- configure CD Answer to access the CD-ROM via a device driver.  When you
  468. ---- return to the installation, you will be given this opportunity.\n\n
  469. ----You may also want to examine your AUTOEXEC.BAT file.  Many CD-ROM installation programs
  470. ---- insert the command to load Extensions into this file.  This causes Extensions
  471. ---- to be automatically loaded each time you reboot your computer.  Again, this
  472. ---- represents a substantial waste of convential DOS memory.
  473. NEWMENU ?, 11, 25
  474. MENU Continue with Microsoft Extensions help
  475. MENU Return to help topics menu
  476. MENU Return to installation
  477.  
  478. CHOICE 1
  479. GOTO mscdex6
  480.  
  481. CHOICE 2
  482. GOTO help_menu
  483.  
  484. CHOICE 3
  485. GOTO cont_inst
  486. ENDCHOICES
  487.  
  488. :mscdex6
  489. TEXT If you are having problems installing and/or loading Microsoft Extensions on 
  490. ---- your computer, then you should consult the documentation which came with 
  491. ---- your copy of Extensions and/or the CD-ROM drive.  Here are some points to keep in mind:\n
  492. ----   1. Make sure the CONFIG.SYS file has a LASTDRIVE= statement.\n
  493. ----   2. If you are running DOS 5, you may need to load SETVER.EXE.\n
  494. ----      Consult your DOS 5 manual for more information.\n
  495. ----   3. The CD-ROM drive must be correctly connected to the computer,\n
  496. ----      turned on, and there should be a CD-ROM disc in the drive.\n
  497. ----   4. The CD-ROM device driver must have loaded successfully when the\n
  498. ----      computer was last booted.
  499. NEWMENU ?, 12, 25
  500. MENU Return to help topics menu
  501. MENU Return to installation
  502.  
  503. CHOICE 1
  504. GOTO help_menu
  505.  
  506. CHOICE 2
  507. GOTO cont_inst
  508. ENDCHOICES
  509.  
  510. :multihelp1
  511. CLEAR
  512. TEXTNeed to put multi-disc help here.
  513. NEWMENU ?, 12, 25
  514. MENU Return to help topics menu
  515. MENU Return to installation
  516.  
  517. CHOICE 1
  518. GOTO help_menu
  519.  
  520. CHOICE 2
  521. GOTO cont_inst
  522. ENDCHOICES
  523.  
  524. :nethelp1
  525. CLEAR
  526. TEXTThere are as many ways of accessing a networked CD-ROM device as there
  527. ---- are network operating systems (NOS).  However, all of these different
  528. ---- access methods take one of two basic approaches:\n\n
  529. ----              - virtural CD-ROM device driver\n
  530. ----              - logical DOS drive letter\n\n
  531. ----In other words, the same issues which apply to stand-alone CD-ROM access
  532. ---- also apply to networked CD-ROM access.  The only difference is that
  533. ---- the CD-ROM disc and the retrieval software are being shared.
  534. NEWMENU ?, 11, 25
  535. MENU Continue with network help
  536. MENU Return to help topics menu
  537. MENU Return to installation
  538.  
  539. CHOICE 1
  540. CLEAR
  541. GOTO nethelp2
  542.  
  543. CHOICE 2
  544. CLEAR
  545. GOTO help_menu
  546.  
  547. CHOICE 3
  548. GOTO cont_inst
  549. ENDCHOICES
  550.  
  551. :nethelp2
  552. TEXTThe network administrator, and/or the individual responsible
  553. ---- for administering the shared CD-ROMs, should be consulted before 
  554. ---- installing a networked CD-ROM application.  This person, or persons,
  555. ---- will need to answer one of the following two questions:\n\n
  556. ----  1. If a virtual device driver is used, what is the device name?\n
  557. ----  2. If a logical DOS drive letter is used, what is the drive letter?\n\n
  558. ----Once the CD-ROM access method issue is determined, the directory where
  559. ---- the retrieval software is to be installed will need to be configured.
  560. NEWMENU ?, 11, 25
  561. MENU Continue with network help
  562. MENU Return to help topics menu
  563. MENU Return to installation
  564.  
  565. CHOICE 1
  566. CLEAR
  567. GOTO nethelp3
  568.  
  569. CHOICE 2
  570. CLEAR
  571. GOTO help_menu
  572.  
  573. CHOICE 3
  574. GOTO cont_inst
  575. ENDCHOICES
  576.  
  577. :nethelp3
  578. TEXTWorkstations need to be able to open and read all files in the
  579. ---- shared directory.  Additionally, they need to create, modify and delete 
  580. ---- any temporary files created during the session.  The steps necessary
  581. ---- to create this level of access vary with the network operating system. 
  582. ---- For instance, in a Novell Netware 3.1 environment, the steps are:\n\n
  583. ----  1. Users are "granted" all rights except Supervisor and Modify.\n
  584. ----  2. All files are "flagged" RW and S (for read-write and shareable)\n
  585. ----     except for the DW.EXE file.  This file needs to be flagged\n
  586. ----     RO and S (for read-only and shareable).
  587. NEWMENU ?, 11, 25
  588. MENU Continue with network help
  589. MENU Return to help topics menu
  590. MENU Return to installation
  591.  
  592. CHOICE 1
  593. CLEAR
  594. GOTO nethelp4
  595.  
  596. CHOICE 2
  597. CLEAR
  598. GOTO help_menu
  599.  
  600. CHOICE 3
  601. GOTO cont_inst
  602. ENDCHOICES
  603.  
  604. :nethelp4
  605. TEXTNon-Netware networks will use different terminology to describe these 
  606. ---- procedures.  Whatever the terminology, the following applies:\n\n
  607. ---- 1. If users do not have sufficient rights to the network directory\n
  608. ----    then running the application will result in I/O error messages.\n
  609. ---- 2. If all users have sufficient rights, but the files are not set up\n
  610. ----    to be shared, then only the first user to access the files will\n
  611. ----    be able to run the application.  All subsequent users will get a\n
  612. ----    file-sharing error message.
  613. NEWMENU ?, 11, 25
  614. MENU Continue with network help
  615. MENU Return to help topics menu
  616. MENU Return to installation
  617.  
  618. CHOICE 1
  619. CLEAR
  620. GOTO nethelp5
  621.  
  622. CHOICE 2
  623. CLEAR
  624. GOTO help_menu
  625.  
  626. CHOICE 3
  627. GOTO cont_inst
  628. ENDCHOICES
  629.  
  630. :nethelp5
  631. TEXTAs a final step, the network administrator needs to modify the 
  632. ---- start-up batch file.  The
  633. ---- installation program you are now running will create a default
  634. ---- batch file named <prod>.BAT.  This batch file performs 
  635. ---- the following:\n\n
  636. ----     - takes users to <dstdrive> drive;\n
  637. ----     - changes to the <path> directory;\n
  638. ----     - launches the DW.EXE executable.\n\n
  639. ----This default batch file will need to be modified if your network 
  640. ---- CD-ROM sharing software requires more commands.
  641. NEWMENU ?, 12, 25
  642. MENU Return to help topics menu
  643. MENU Return to installation
  644.  
  645. CHOICE 1
  646. CLEAR
  647. GOTO help_menu
  648.  
  649. CHOICE 2
  650. GOTO cont_inst
  651. ENDCHOICES
  652.  
  653. :os2help1
  654. CLEAR
  655. TEXTThe retrieval software you are installing is a DOS program.  As such,
  656. ---- it should run in most DOS-emulation environments such as OS/2, Soft PC,
  657. ---- Soft AT, etc.  In all of these cases, the retrieval software should be
  658. ---- configured to access the CD-ROM disc via a logical DOS drive letter.\n\n
  659. ----The software has been successfully tested in several of these 
  660. ---- environments.  One known problem occurs with earlier versions of IBM's
  661. ---- OS2CDROM.SYS device driver.  If you encounter problems running under 
  662. ---- OS/2, you should check the date and version number of this file.  Files
  663. ---- dated after March 1992 should work correctly.
  664. NEWMENU ?, 12, 25
  665. MENU Return to help topics menu
  666. MENU Return to installation
  667.  
  668. CHOICE 1
  669. GOTO help_menu
  670.  
  671. CHOICE 2
  672. GOTO cont_inst
  673. ENDCHOICES
  674.  
  675. :config_help1
  676. CLEAR
  677. TEXTThe installation program you are running will prompt you for all necessary configuration
  678. ---- options, e.g. video display adapter, printer modes, etc.  It will then 
  679. ---- save your selections to a plain ASCII configuration file, <dest>\_DW_.CFG.  Should you later
  680. ---- decide to change or override these original selections, you may either:\n\n
  681. ----              - rerun this install program\n
  682. ----              - edit the _DW_.CFG configuration file\n
  683. ----              - use command-line switches
  684. NEWMENU ?, 11, 25
  685. MENU Continue configuration help
  686. MENU Return to help topics menu
  687. MENU Return to installation
  688.  
  689. CHOICE 1
  690. GOTO config_help2
  691.  
  692. CHOICE 2
  693. GOTO help_menu
  694.  
  695. CHOICE 3
  696. GOTO cont_inst
  697. ENDCHOICES
  698.  
  699. :config_help2
  700. CLEAR
  701. TEXTYou may run this installation program whenever you wish to 
  702. ---- change any of your installed options.  Your new selections 
  703. ---- will be written to the <dest>\_DW_.CFG configuation file.\n\n
  704. ----Once you are familiar with the configuration options, you may elect
  705. ---- to modify the _DW_.CFG file directly.  One option which may require
  706. ---- direct modification is the DRIVER= line.  This option tells the retrieval
  707. ---- software how to access the CD-ROM disc, i.e. either via a CD-ROM device
  708. ---- driver or via a logical DOS drive letter.
  709. NEWMENU ?, 11, 25
  710. MENU Continue configuration help
  711. MENU Return to help topics menu
  712. MENU Return to installation
  713.  
  714. CHOICE 1
  715. GOTO config_help3
  716.  
  717. CHOICE 2
  718. GOTO help_menu
  719.  
  720. CHOICE 3
  721. GOTO cont_inst
  722. ENDCHOICES
  723.  
  724. :config_help3
  725. CLEAR
  726. TEXTIf the install program you are running doesn't recognize a CD-ROM
  727. ---- driver, then you should complete the installation, and then modify the
  728. ---- _DW_.CFG file.  The correct syntax for the line is:\n\n
  729. ----              Driver = "FS_ISGEN=<<device name>"\n\n
  730. ----FS_ISGEN is the name of the CD-ROM file system driver used by the
  731. ---- CD Answer retrieval software.  In this example, <<device name> should be
  732. ---- changed to match the device name loaded in your CONFIG.SYS file on the
  733. ---- DEVICE=<<driver file> /D:{device name} line, e.g. DRIVE0.
  734. NEWMENU ?, 11, 25
  735. MENU Continue configuration help
  736. MENU Return to help topics menu
  737. MENU Return to installation
  738.  
  739. CHOICE 1
  740. GOTO config_help4
  741.  
  742. CHOICE 2
  743. GOTO help_menu
  744.  
  745. CHOICE 3
  746. GOTO cont_inst
  747. ENDCHOICES
  748.  
  749. :config_help4
  750. CLEAR
  751. TEXTTo have the retrieval software use a (different) logical DOS drive (and optional subdirectory path), you may
  752. ---- edit the DRIVER= line of the _DW_.CFG file so that it appears as:\n\n
  753. ----                    Driver = "D:\"\n\n
  754. ----The D:\ in this example should be changed to match the
  755. ---- actual DOS drive letter you use to access your CD-ROM disc.  You must
  756. ---- enclose the location in quotes.
  757. NEWMENU ?, 11, 25
  758. MENU Continue configuration help
  759. MENU Return to help topics menu
  760. MENU Return to installation
  761.  
  762. CHOICE 1
  763. GOTO config_help5
  764.  
  765. CHOICE 2
  766. GOTO help_menu
  767.  
  768. CHOICE 3
  769. GOTO cont_inst
  770. ENDCHOICES
  771.  
  772. :config_help5
  773. CLEAR
  774. TEXTThe CD Answer retrieval software's main executable program is called
  775. ---- DW.EXE.  This executable will accept many of the _DW_.CFG options as
  776. ---- command line switches.  For example, if the DOS drive letter used to
  777. ---- access the CD-ROM isn't permanently set, but is set to an environment
  778. ---- variable, then the batch file used to start CD Answer should
  779. ---- be modified as follows:\n\n
  780. ----                    DW /D:<<env. variable>\n\n
  781. NEWMENU ?, 11, 25
  782. MENU Continue configuration help
  783. MENU Return to help topics menu
  784. MENU Return to installation
  785.  
  786. CHOICE 1
  787. GOTO config_help6
  788.  
  789. CHOICE 2
  790. GOTO help_menu
  791.  
  792. CHOICE 3
  793. GOTO cont_inst
  794. ENDCHOICES
  795.  
  796. :config_help6
  797. CLEAR
  798. TEXTThe other switches available are:\n\n
  799. ----      /RO - starts the software in read-only mode\n
  800. ----      /SC:<<screen driver name>=<<driver options>\n
  801. ----             Note: /SC:? detects display automatically.\n
  802. ----      /L:<<language>\n
  803. ----      /P:<<printer driver name>=<<driver options>\n
  804. ----      /IO:<<I/O path> - location of _DW_.CFG file\n
  805. ----      /MK:<<path> - location of all application-specific files\n
  806. ----      /TMP:<<path> - directory for creation of temporary files\n\n
  807. NEWMENU ?, 11, 25
  808. MENU Return to help topics menu
  809. MENU Return to installation
  810.  
  811. CHOICE 1
  812. GOTO help_menu
  813.  
  814. CHOICE 2
  815. GOTO cont_inst
  816. ENDCHOICES
  817.  
  818. ;----------------------------------------------------------------------------
  819. ;--------- End of Help: Continue Installation ------------------------------
  820. ;----------------------------------------------------------------------------
  821. ; Test for existence -and number- of installed CD-ROM drive letters.
  822. :bad_drive
  823. CLEAR
  824. TEXTThe syntax for the drive specification is incorrect.\n
  825. ----Please be sure to follow the examples.\n
  826. WAIT
  827.  
  828. :enter_drive
  829. CLEAR
  830. PARSE_PATH <$CurDir>
  831. SET cd_letters = <$Drive>
  832. TEXT CD-ROM Drive Letter:\n\n
  833. ----    Enter the CD-ROM drive letter containing the 3M MSDS DEMO CD-ROM!\n
  834. ----    For example, if you access your CD-ROM drive as drive E:,\n
  835. ----    then enter "E:".  Entering "E:\" is incorrect.\n
  836. INPUT 2,10,80 cd_letters = CD-ROM Drive Letter ?
  837. IF "<cd_letters>"=="" GOTO enter_drive
  838. ;;;;;;;;;;;;;;IF NOT "<cd_letters:3:1>"=="\" GOTO bad_drive
  839. IF NOT "<cd_letters:2:1>"==":" GOTO bad_drive
  840. IF NOT "<cd_letters:3:1>"=="" GOTO bad_drive
  841. IF "<cd_letters:1:1>"=="\" GOTO bad_drive
  842. IF DIREXISTS <cd_letters>\ GOTO ok_path
  843. GOTO bad_drive
  844.  
  845. :ok_path
  846. CONFIG Driver = "<cd_letters>"
  847.  
  848. :driver_okay
  849. IF NOT EXISTS <insdrive>\CDPINST.EXE GOTO :display
  850. IF NOT EXISTS <insdrive>\CDAUTHOR.CDP GOTO :display
  851. CALL cdpinst.exe <insdrive> <dest> <cd_letters>\DATA
  852. ;------ End of Driver Installations: Display Section Begins ----------------------------------------------------------------------
  853. :display
  854. CLEAR
  855. TEXT Display Choices:\n
  856. ----   Use the  and  arrows to select a screen type and
  857. ---- press ┘ (Enter)
  858.  
  859. NEWMENU ? 6 46
  860. MENU Standard Screen     - No graphics
  861. MENU VGA/SVGA Adaptor
  862. MENU MCGA Adaptor
  863. MENU EGA Adaptor
  864. MENU CGA Adaptor
  865. MENU Hercules Graphics Card
  866. MENU Olivetti, AT&T or Compaq Plasma
  867. MENU Full page display
  868.  
  869. IF "<$Screen:1:3>"=="VGA" DO MENU_DEFAULT 2
  870. IF "<$Screen:1:4>"=="SVGA" DO MENU_DEFAULT 2
  871. IF "<$Screen:1:4>"=="MCGA" DO MENU_DEFAULT 3
  872. IF "<$Screen:1:3>"=="EGA" DO MENU_DEFAULT 4
  873. IF "<$Screen:1:3>"=="CGA" DO MENU_DEFAULT 5
  874. IF "<$Screen:1:3>"=="HER" DO MENU_DEFAULT 6
  875. IF "<$Screen:1:3>"=="COR" DO MENU_DEFAULT 8
  876. IF "<$Screen:1:3>"=="MDS" DO MENU_DEFAULT 8
  877.  
  878. SET Port = N
  879.  
  880. CHOICE 1
  881.  SET scr_type = SC_STD
  882.  SET Port = ?
  883. CHOICE 2
  884.  SET scr_type = SC_VGA
  885.  SET Port = ?
  886. CHOICE 3
  887.  SET scr_type = SC_MCGA
  888.  SET Port = ?
  889. CHOICE 4
  890.  SET scr_type = SC_EGA
  891.  SET Port = ?
  892. CHOICE 5
  893.  SET scr_type = SC_CGA
  894.  SET Port = ?
  895. CHOICE 6
  896.  SET scr_type = SC_HERC
  897. CHOICE 7
  898.  SET scr_type = SC_ATT
  899.  SET Port = ?
  900. CHOICE 8
  901.  SET scr_type = FP
  902. ENDCHOICES
  903.  
  904. IF NOT "<scr_type>"=="FP" GOTO not_full_page
  905.  
  906. CLEAR
  907. CLEAR
  908. TEXT Display Choices:\n
  909. ----   Use the  and  arrows to select a screen type and
  910. ---- press ┘ (Enter)
  911.  
  912. NEWMENU ? 6 46
  913. MENU Cornerstone FullPage
  914. MENU MDS Genius
  915.  
  916. IF "<$Screen:1:3>"=="COR" DO MENU_DEFAULT 1
  917. IF "<$Screen:1:3>"=="MDS" DO MENU_DEFAULT 2
  918.  
  919. CHOICE 1
  920.  SET scr_type = SC_CNRST
  921. CHOICE 2
  922.  SET scr_type = SC_MDS
  923. ENDCHOICES
  924.  
  925. :not_full_page
  926.  
  927. SET extra =
  928. IF NOT "<Port>" == "?" GOTO no_scr_opts
  929.  
  930. CLEAR
  931. TEXT Display Detail Choices:\n
  932. ----   Use the  and  arrows to select screen option and
  933. ---- press ┘ (Enter)
  934.  
  935. NEWMENU ? 6 46
  936.  MENU Standard Color or Monochrome Monitor
  937.  MENU Portable Computer   - Built-in Monochrome monitor
  938.  IF "<scr_type>"=="SC_CGA" DO MENU Older Color Screens - interference or "snow"
  939.  
  940. IF "<$Screen:-4>"=="PORT" DO MENU_DEFAULT 2
  941.  
  942. CHOICE 2
  943.   SET extra = P
  944. CHOICE 3
  945.   SET extra = F
  946. ENDCHOICES
  947.  
  948. :no_scr_opts
  949.  
  950. CONFIG Screen = "<scr_type>=<extra>"
  951.  
  952. CLEAR
  953. TEXT Copying Screen Driver...
  954. SET driver_name = <scr_type>.DRV
  955. GOSUB copy_driver
  956.  
  957. ;----------------------------------------------------------------------------
  958.  
  959. CLEAR
  960. TEXT Printer Choices:\n
  961. ----   Use the  and  arrows to select a printer type and
  962. ---- press ┘ (Enter)
  963.  
  964. SET extra =
  965.  
  966. NEWMENU ? 6 46
  967. MENU HP LaserJet family
  968. MENU HP DeskJet family
  969. MENU JLaser printer controller
  970. MENU Other printer
  971.  
  972. CHOICE 1
  973.   SET prn_type = PR_PCL?
  974. CHOICE 2
  975.   SET prn_type = PR_DJ?
  976. CHOICE 3
  977.   SET prn_type = PR_JL?
  978. CHOICE 4
  979.   SET prn_type = PR_STD
  980. ENDCHOICES
  981.  
  982. IF "<prn_type>" == "PR_PCL?" GOTO pr_type_1
  983. IF "<prn_type>" == "PR_DJ?" GOTO pr_type_2
  984. IF "<prn_type>" == "PR_JL?" GOTO pr_type_3
  985. IF "<prn_type>" == "PR_STD" GOTO pr_type_4
  986.  
  987. :pr_type_1
  988.  
  989.   CLEAR
  990.  
  991.   GOSUB pr_detail
  992.  
  993.   NEWMENU ? 6 46
  994.   MENU HP LaserJet(+), LaserJet 500(+), LaserJet 2000
  995.   MENU HP LaserJet Series II, IID
  996.   MENU HP LaserJet IIP(+), III(+), IIID, IIIP, IIISi
  997.  
  998.   CHOICE 1
  999.     SET extra = R
  1000.   CHOICE 2
  1001.     SET extra = X
  1002.   CHOICE 3
  1003.     SET extra = XG
  1004.   ENDCHOICES
  1005.  
  1006.   GOSUB pr_detail
  1007.  
  1008.   NEWMENU ? 6 46
  1009.   MENU 300 Dpi (  1Mb memory)
  1010.   MENU 150 Dpi (512Kb memory)
  1011.   MENU 75  Dpi (256Kb memory)
  1012.   
  1013.   CHOICE 1
  1014.     SET prn_type = PR_PCL30
  1015.   CHOICE 2
  1016.     SET prn_type = PR_PCL15
  1017.   CHOICE 3
  1018.     SET prn_type = PR_PCL75
  1019.   ENDCHOICES
  1020.   
  1021.   GOTO pr_type_ok
  1022.  
  1023. :pr_type_2
  1024.  
  1025.   GOSUB pr_detail
  1026.  
  1027.   NEWMENU ? 6 46
  1028.   MENU HP DeskJet(+)
  1029.   MENU HP DeskJet 500
  1030.   MENU HP DeskJet 500C
  1031.  
  1032.   CHOICE 1
  1033.     SET extra = X
  1034.   CHOICE 2
  1035.     SET extra = XG
  1036.   CHOICE 3
  1037.     SET extra = XG
  1038.   ENDCHOICES
  1039.  
  1040.   GOSUB pr_detail
  1041.  
  1042.   NEWMENU ? 6 46
  1043.   MENU 300 Dpi
  1044.   MENU 150 Dpi
  1045.   MENU 75  Dpi
  1046.  
  1047.   CHOICE 1
  1048.     SET prn_type = PR_PCL30
  1049.   CHOICE 2
  1050.     SET prn_type = PR_PCL15
  1051.   CHOICE 3
  1052.     SET prn_type = PR_PCL75
  1053.   ENDCHOICES
  1054.  
  1055.   GOTO pr_type_ok
  1056.  
  1057. :pr_type_3
  1058.  
  1059.   GOSUB pr_detail
  1060.  
  1061.   NEWMENU ? 6 46
  1062.   MENU HP LaserJet(+), LaserJet 500(+), LaserJet 2000
  1063.   MENU HP LaserJet (all other models)
  1064.   MENU Canon LBP (any models)
  1065.  
  1066.   CHOICE 1
  1067.     SET prn_type = PR_JLHP
  1068.     SET extra = R
  1069.   CHOICE 2
  1070.     SET prn_type = PR_JLHP
  1071.     SET extra = X
  1072.   CHOICE 3
  1073.     SET prn_type = PR_JLCAN
  1074.   ENDCHOICES
  1075.  
  1076.   GOTO pr_type_ok
  1077.  
  1078. :pr_type_4
  1079.  
  1080.   GOSUB pr_detail
  1081.  
  1082.   NEWMENU ? 6 46
  1083.   MENU 8-bit PC-compatible character set
  1084.   MENU 7-bit National ASCII character set
  1085.  
  1086.   CHOICE 2
  1087.     SET extra = 7
  1088.   ENDCHOICES
  1089.  
  1090.   GOTO pr_type_ok
  1091.  
  1092. :pr_detail
  1093. CLEAR
  1094. TEXT Printer Detail Choices:\n
  1095. ----   Use the  and  arrows to select printer option and
  1096. ---- press ┘ (Enter)
  1097. RETURN
  1098.  
  1099. :pr_type_ok
  1100.  
  1101. SET port =
  1102.  
  1103. NEWMENU ? 6 40
  1104. MENU LPT1       Parallel Printer # 1
  1105. MENU COM1       Serial Printer   # 1
  1106. MENU LPT2       Parallel Printer # 2
  1107. MENU COM2       Serial Printer   # 2
  1108. MENU LPT3       Parallel Printer # 3
  1109. MENU LPT4       Parallel Printer # 4
  1110. MENU PRN        DOS current printer
  1111.  
  1112. CLEAR
  1113. TEXT Printer Connection Choices:\n
  1114. ----   Use the  and  arrows to select a printer port and
  1115. ---- press ┘ (Enter)
  1116.  
  1117. CHOICE 1
  1118.  SET port = LPT1,
  1119. CHOICE 2
  1120.  SET port = COM1,
  1121. CHOICE 3
  1122.  SET port = LPT2,
  1123. CHOICE 4
  1124.  SET port = COM2,
  1125. CHOICE 5
  1126.  SET port = LPT3,
  1127. CHOICE 6
  1128.  SET port = LPT4,
  1129. CHOICE 7
  1130.  SET port = PRN,
  1131. ENDCHOICES
  1132.  
  1133. CONFIG Printer = "<prn_type>=<port><extra>"
  1134.  
  1135. CLEAR
  1136. TEXT Copying Printer Driver...
  1137. SET driver_name = <prn_type>.DRV
  1138. GOSUB copy_driver
  1139.  
  1140. ;----------------------------------------------------------------------------
  1141.  
  1142. IF "<alter>"=="Y" GOTO done
  1143.  
  1144. :read_disk
  1145. GOSUB need_disk
  1146.  
  1147. CLEAR
  1148. TEXT Installing Application files...
  1149. COPY_OPT <insdrive>\DISK<curdisk>\*.* <dest>
  1150.  
  1151. ;Copy adl and dw message files
  1152. IF NOT DIREXISTS <ins> GOTO skip_message_files
  1153. COPY_OPT <ins>\_DW_MSGS.* <dest>
  1154. COPY_OPT <ins>\ADL_MSGS.* <dest>
  1155. COPY_OPT <ins>\UPDATE.EXE <dest>
  1156. :skip_message_files
  1157.  
  1158. CALC curdisk = <curdisk> + 1
  1159. IF EXISTS <insdrive>MORE GOTO read_disk
  1160.  
  1161. CONFIG Language = "<def_lang>"
  1162. goto DONE
  1163.  
  1164. :abort
  1165. if "<dest>"=="" GOTO nofiles
  1166. if "<alter>"=="Y" GOTO nofiles
  1167. CLEAR
  1168. TEXT \n\n!!! Installation Aborted !!!\n\n
  1169. ----   Removing any copied files...
  1170. UNCOPY
  1171. :nofiles
  1172. CLEAR
  1173. TEXT \n\n!!! Installation Aborted !!!\n\n
  1174. goto END
  1175.  
  1176. :copy_driver
  1177. IF EXISTS <ins>\<driver_name> GOTO ok_copy
  1178. CALC curdisk = <curdisk> + 1
  1179. GOSUB need_disk
  1180. GOTO copy_driver
  1181. :ok_copy
  1182. COPY <ins>\<driver_name> <dest>
  1183. RETURN
  1184.  
  1185. :need_disk
  1186. IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
  1187. :retry_disk2
  1188. CLEAR
  1189. TEXT Insert Install Disk Number <curdisk> and press ┘ (Enter) when ready.
  1190. WAIT
  1191. IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
  1192.  
  1193. CLEAR
  1194. TEXT The disk inserted is not Installation Disk Number <curdisk> !
  1195. NEWMENU ?, 3, 15
  1196. MENU Retry
  1197. MENU Abort
  1198.  
  1199. CHOICE 1
  1200. GOTO retry_disk2
  1201. ENDCHOICES
  1202.  
  1203. ABORT
  1204.  
  1205. :done
  1206. CLEAR
  1207. TEXT Updating Configuration
  1208. WRITECONFIG <dest>\_DW_.CFG
  1209. IF "<alter>"=="Y" GOTO end
  1210. WRITEFILE <dstdrive>\<prod>.BAT = <dstdrive>\ncd <path>\nDW\ncd \\n
  1211.  
  1212. CLEAR
  1213. TEXT \nInstallation complete!\n\n
  1214. ----A batch file was created in the <dstdrive>\ directory with the name <prod>.\n\n
  1215. ----To execute the program, type:\n\n
  1216. ----  <prod> ┘ (Enter)\n\n
  1217. ----Important: In order for this command to work as shown, you must be in
  1218. ---- the <dstdrive>\ directory or have it in your PATH variable.
  1219.  
  1220. :end
  1221. WAIT
  1222.  
  1223. :end2
  1224. CD <$CurDir>
  1225. goto testend
  1226.  
  1227. :no_letters
  1228. CLEAR
  1229. TEXT \n  No CD-ROM letters were detected.
  1230. WAIT
  1231. goto testend
  1232.  
  1233. :one_letter
  1234. CLEAR
  1235. TEXT \n  One CD-ROM drive letter detected.
  1236. WAIT
  1237. goto testend
  1238.  
  1239. :no_drives
  1240. CLEAR
  1241. TEXT \n  No CD-ROM drivers were detected.
  1242. WAIT
  1243. :testend
  1244.  
  1245.  
  1246.